package beikai.com.assistant.controller;


import beikai.com.assistant.common.domain.params.UserVillageRelParams;
import beikai.com.assistant.service.IUserVillageRelService;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 小区信息 前端控制器
 * </p>
 *
 * @author beikai
 * @since 2021-12-19
 */
@RestController
@RequestMapping("/user/user-village-rel-model")
public class UserVillageRelController {

    @Autowired
    private IUserVillageRelService userVillageRelService;

    @PostMapping("/addRel")
    public JSONObject addRel(@RequestBody UserVillageRelParams userVillageRelParams){
        return userVillageRelService.addRel(userVillageRelParams);
    }

}

